﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Bing.Service;

namespace Microsoft.Bing
{
    /// <summary>
    /// Implements an event argument for identification of a <see cref="Microsoft.Bing.Service.SearchResponse"/> object.
    /// </summary>
    public class SearchResponseEventArgs : EventArgs
    {
        /// <summary>
        /// The <see cref="Microsoft.Bing.Service.SearchResponse"/> identified by the event argument.
        /// </summary>
        public readonly SearchResponse  Response = null;

        /// <summary>
        /// Instantiates a <see cref="SearchResponseEventArgs"/> instance.
        /// </summary>
        /// <param name="response">The <see cref="Microsoft.Bing.Service.SearchResponse"/> to be identified by the event argument.</param>
        public SearchResponseEventArgs(SearchResponse response)
        {
            this.Response = response;
        }
    }
}
